﻿using System;
using System.Web;
using System.Web.ModelBinding;
using System.Web.Routing;

namespace Morus.Presentation
{
    public interface IView<TModel> : IView
        where TModel : class
    {
        TModel Model { get; set; }
        ModelStateDictionary ModelState { get; }

        bool TryUpdateModel(TModel model);
        bool TryUpdateModel(TModel model, IValueProvider valueProvider);
        void UpdateModel(TModel model);
        void UpdateModel(TModel model, IValueProvider valueProvider);
    }
}
